<%= form_for(@technique_template) do |f| %>
  <% if @technique_template.errors.any? or @technique.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@technique_template.errors.count + @technique.errors.count, "error") %> prohibited this technique_template from being saved:</h2>

      <ul>
      <% @technique_template.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
      <ul>
      <% @technique.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label 'Template name' %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :filename %><br />
    <%= text_field 'technique', 'filename' %>
    <%= f.check_box :filename %>
  </div>
  <div class="field">
    <%= f.label :location %><br />
    <%= text_field 'technique', 'location' %>
    <%= f.check_box :location %>
  </div>
  <div class="field">
    <%= f.label :recursively %><br />
    <%= text_field 'technique', 'recursively' %>
    <%= f.check_box :recursively %>
  </div>
  <div class="field">
    <%= f.label :hash_type %><br />
    <%= text_field 'technique', 'hash_type' %>
    <%= f.check_box :hash_type %>
  </div>
  <div class="field">
    <%= f.label :hash_value %><br />
    <%= text_field 'technique', 'hash_value' %>
    <%= f.check_box :hash_value %>
  </div>
  <div class="field">
    <%= f.label :content %><br />
    <%= text_field 'technique', 'content' %>
    <%= f.check_box :content %>
  </div>
  <div class="field">
    <%= f.label :mimetype %><br />
    <%= text_field 'technique', 'mimetype' %>
    <%= f.check_box :mimetype %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
